import React from 'react';
import {
  BrowserRouter as Router,
  Route,
  Link,
} from 'react-router-dom';
import { hot } from 'react-hot-loader';


const Hello = require('./hello.js').default

let APP = () => (
        <Router>
            <div>
                <h1><Link to="/hello">heldddl</Link></h1>
                <h1><Link to='/'>home</Link></h1>
                <Route path="/hello" component={Hello}/>
            </div>
        </Router>
    )

export default hot(module)(APP)
